/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-02-19 11:14:47
 * @LastEditTime : 2023-03-03 17:03:07
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Modal\TwoModalList\CameraTimeLapseDetail.jsx
 * @Description  :
 */
import { API_LIST } from '../../Api/Api'
import { ThrDeleteBtn } from '../options'

export const CameraTimeLapseDetail = async ({ data, upDataEvent }) => {
    let dataList = {
        type: '延时摄影信息',
        hideInSearch: true,
        pageSize: 10,
        params: { cameraTimeLapseUuid: data.uuid },
        classification: 'ImageList',
        get: 'getCameraTimeLapseDetail',
        del: 'delCameraTimeLapseDetail',
        columns: [
            {
                title: '延时摄影编号',
                dataIndex: 'CameraTimeLapseUuid',
                search: false,
                type: 'hidden',
                hideInTable: true,
            },

            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <ThrDeleteBtn
                            key="delete"
                            record={record.uuid}
                            upDataEvent={upDataEvent}
                            data={{ key: 'delete', url: 'delCameraTimeLapseDetail', title: '删除延时摄影明细' }}
                        />,
                    ]
                },
            },
        ],
    }

    return dataList
}
